<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <style>
        .red{
            color:red
        }
        .blue{
            color:blue
        }
    </style>
</head>
<body>

<div id="Application">
    <div :class="{blue:isBlue,red:isRed}">示例</div>
    <div :style="{color:textColor,fontsize:textFont}">示例2</div>
 </div>
<script>
    const App={
        data(){
            return{
                isBlue:false,
                isRed:true,
                textColor:"lightblue",
                textFont:"20px"
            }
        }
    }
    Vue.createApp(App).mount("#Application")
</script>
</body>
</html>
